#ifndef CAMERADLG_H
#define CAMERADLG_H

#include "mainwindow.h"
#include <QCamera>
#include <QCameraImageCapture>
#include <QCameraViewfinder>
#include <QDialog>
#include <QLabel>
#include <QPushButton>

namespace Ui {
class CameraDlg;
}

class CameraDlg : public QDialog
{
    Q_OBJECT

public:
    explicit CameraDlg(QWidget *parent = 0);
    ~CameraDlg();

protected:
    void translateLanguage();
    void displayImage(int id, QImage image);
    void captureImage();
    void saveImage();
private:
    Ui::CameraDlg *ui;

    QCamera *pCamera;
    QCameraViewfinder *pCameraViewFinder;
    QCameraImageCapture *pCameraImageCapture;
    QPushButton *pbtnCapture;
    QPushButton *pbtnSave;
    QPushButton *pbtnExit;
    QLabel *pLabelDisplay;
};

#endif // CAMERADLG_H
